<?php

use yii\helpers\Html;
use yii\widgets\ActiveForm;

?>

<!DOCTYPE html>
<html class="login-bg">
<head>
    <title>慕课商城 - 后台管理</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

    <!-- bootstrap -->
    <link href="/backend/css/bootstrap/bootstrap.css" rel="stylesheet"/>
    <link href="/backend/css/bootstrap/bootstrap-responsive.css" rel="stylesheet"/>
    <link href="/backend/css/bootstrap/bootstrap-overrides.css" type="text/css" rel="stylesheet"/>

    <!-- global styles -->
    <link rel="stylesheet" type="text/css" href="/backend/css/layout.css"/>
    <link rel="stylesheet" type="text/css" href="/backend/css/elements.css"/>
    <link rel="stylesheet" type="text/css" href="/backend/css/icons.css"/>

    <!-- libraries -->
    <link rel="stylesheet" type="text/css" href="/backend/css/lib/font-awesome.css"/>

    <!-- this page specific styles -->
    <link rel="stylesheet" href="/backend/css/compiled/signin.css" type="text/css" media="screen"/>

    <!-- open sans font -->
    <!--    <link href='http://fonts.useso.com/css?family=Open+Sans:300italic,400italic,700italic,800italic,400,300,600,700,800' rel='stylesheet' type='text/css' />-->

    <!--[if lt IE 9]>
    <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body>


<div class="row-fluid login-wrapper">
    <a class="brand" href="index.html"></a>
    <?php

    $form = ActiveForm::begin([
            'fieldConfig' => [
                    'template' => '{input}{error}'
            ]
    ]) ?>
    <div class="span4 box">
        <div class="content-wrap">
            <h6>慕课商城 - 后台管理</h6>
            <?php echo $form->field($model, 'adminuser')->textInput(['class' => 'span12', 'placeholder' => '管理员账号']) ?>
            <!--            <input class="span12" type="text" placeholder="管理员账号"/>-->
            <!--            <input class="span12" type="password" placeholder="管理员密码"/>-->
            <?php echo $form->field($model, 'adminpass')->passwordInput(['class' => 'span12', 'placeholder' => '管理员密码']) ?>
            <a href="<?php echo \yii\helpers\Url::to(['public/seekpassword'])?>" class="forgot">忘记密码?</a>

                <!--                <input id="remember-me" type="checkbox"/>-->
                <?php echo $form->field($model, 'RememberMe')->checkbox([
                    'id' => 'remember-me',
                    'template' => '<div class="remember">{input}<label for="remember-me">记住我</label></div>',
                ]); ?>
            <?php echo Html::submitButton('登录',['class'=>'btn-glow primary login'])?>
        </div>
    </div>

    <?php ActiveForm::end(); ?>
</div>

<!-- scripts -->
<script src="/backend/js/jquery-latest.js"></script>
<script src="/backend/js/bootstrap.min.js"></script>
<script src="/backend/js/theme.js"></script>

<!-- pre load bg imgs -->
<script type="text/javascript">
    $(function () {
        // bg switcher
        var $btns = $(".bg-switch .bg");
        $btns.click(function (e) {
            e.preventDefault();
            $btns.removeClass("active");
            $(this).addClass("active");
            var bg = $(this).data("img");

            $("html").css("background-image", "url('img/bgs/" + bg + "')");
        });

    });
</script>

</body>
</html>